import { Modal } from 'antd'
import React, { useState } from 'react'
import { getLocale, useIntl } from '@umijs/max';
import ChecknHistory from "../../../ChecknHistory/index"
interface Prpos {
    ChinkHistoryflag: boolean
    setChinkHistoryflag: (event: boolean) => void
}

const ChinkHistoryModal: React.FC<Prpos> = ({ ChinkHistoryflag, setChinkHistoryflag }) => {

    const intl = useIntl()

    const showModal = () => {
        setChinkHistoryflag(false);
    };


    return (
        <Modal 
            title={intl.formatMessage({id:"business.CheckInRecord"})}
            open={ChinkHistoryflag}
            onOk={showModal}
            onCancel={showModal}
            width={1500}
            style={{ top: 4}}
            footer={null}
        >
            <ChecknHistory />
        </Modal>
    )
}

export default ChinkHistoryModal
